/*
 * @Author: g05047
 * @Date: 2022-02-17 20:14:57
 * @LastEditors: g05047
 * @LastEditTime: 2022-03-03 09:25:21
 * @Description: file content
 */
import request from '@/utils/request';
let { VUE_APP_ADMIN_API } = process.env;

export default {
  // queryInfo: data => request.get(`${VUE_APP_ADMIN_API}/backsupport/findOneHeader_new`, data),
  // queryCongyeDetail: data => request.post(`${VUE_APP_ADMIN_API}/backsupport/queryCongyeDetail`, data),
  //获取单位列表
  getUnitList: data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findUnitColdChainCompany`, data, { loading: true }),

  //获取采样列表
  getCollectionList: data => request.post(`${VUE_APP_ADMIN_API}/nucleic/acid/sampling/findNucleicAcidSampling`, data, { loading: true }),

  //获取人员列表
  getPersonList: data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findUnitColdChainPersonnel`, data, { loading: true }),

  //区域统计
  getAreaStatistics: data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findRegionalStatistics`, data, { loading: true }),

  //单位业态统计
  getBodyindustryStatistics: data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findBodyindustryStatistics`, data, { loading: true }),

  //注册单位统计
  getUnitStatistics: data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findRegisteredUnitStatistics`, data, { loading: true }),

  //注册单位导出
  exportRegisterUnit: data => request.get(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/exportRegisteredUnitStatistics`, { params: data, isAuth: true, loading: true, responseType: "blob" }),

  //核酸采集填报日期统计
  getCollectionDateStatistics: data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findNucleicAcidCollectionDateStatistics`, data, { loading: true }),

  //导出单位信息
  exportUnitList: data => request.get(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/exportUnitColdChainCompany`, { params: data, isAuth: true, loading: true, responseType: "blob" }),

  //导出人员信息
  exportPersonList: data => request.get(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/exportUnitColdChainPersonnel`, { params: data, isAuth: true, loading: true, responseType: "blob" }),

  //导出核酸信息
  exportCollectionList: data => request.get(`${VUE_APP_ADMIN_API}/nucleic/acid/sampling/exportUnitColdChainCompany`, { params: data, isAuth: true, loading: true, responseType: "blob" }),



  saveunitColdChainLabel: data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/label/saveunitColdChainLabel`, data, { loading: true }),

  saveUnitDeleteById: data => request.post(`${VUE_APP_ADMIN_API}/supervise/unit/type/deleteById`, data, { loading: true }),
 //获取冷链短信提醒记录
 getColdLinkMessageRemindRecord: data => request.post(`${VUE_APP_ADMIN_API}/sms/cold/chain/notification/findSmsNotification`, data, { loading: true })
}
// ----------------------------------------冷链单位统计接口-------------------------------------------
// 单位业态统计
export  let findBodyindustryNewStatistics= data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findBodyindustryNewStatistics`, data);
export  let testFindBodyindustryNewStatistics= data => request.post(`${VUE_APP_ADMIN_API}/unit/coldchain/inspection/findTestCountBodyindustry`, data);



// 注册单位统计
export  let findRegisteredUnitNewStatistics= data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findRegisteredUnitNewStatistics`, data);
// 日期统计
export  let findNucleicAcidCollectionDateNewStatistics= data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findNucleicAcidCollectionDateNewStatistics`, data);
// 区域统计
export  let findRegionalStatisticsNew= data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findRegionalStatisticsNew`, data);
export  let testFindRegionalStatisticsNewFindTestCount= data => request.post(`${VUE_APP_ADMIN_API}/unit/coldchain/inspection/findTestCount`, data);

// 单位标签统计
export  let findCategoryNewStatistics= data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findCategoryNewStatistics`, data);1213131


// 单位标签统计
export  let testFindCategoryNewStatistics= data => request.post(`${VUE_APP_ADMIN_API}/unit/coldchain/inspection/findTestCountCategory`, data);1213131



















// 导出注册单位统计
export  let exportRegisteredUnitNewStatistics= data => request.get(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/exportRegisteredUnitNewStatistics`,  { params: data, isAuth: true, loading: true, responseType: "blob" });

// 导出单位标签
export  let exportCategoryNewStatistics= data => request.get(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/exportCategoryNewStatistics`,  { params: data, isAuth: true, loading: true, responseType: "blob" });


// 按人员统计
export  let findBatchNumberNewStatistics= data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findBatchNumberNewStatistics`, data);

// 按人员欧亮离职
export  let personnelBatch= data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/batch`, data);
// 按人员复工
export  let resumeWorkAndSaveNucleicAcidSampling= data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/resumeWorkAndSaveNucleicAcidSampling`, data);




// 获取弹窗列表
export  let findSpringFramesuperviseunit= data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findSpringFramesuperviseunit`, data);


// 获取列表弹窗列表
export  let findSpringFrame= data => request.post(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/findSpringFrame`, data);
// 导出
export  let exportSpringFramesuperviseunit= data => request.get(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/exportSpringFramesuperviseunit`,  { params: data, isAuth: true, loading: true, responseType: "blob" });



// 获取弹窗列表
export  let exportSpringFrame= data => request.get(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/exportSpringFrame`, { params: data, isAuth: true, loading: true, responseType: "blob" });


// 获取弹窗列表
export  let findHcNucleicAcidReport= data => request.post(`${VUE_APP_ADMIN_API}/hc/nucleic/acid/report/findHcNucleicAcidReport`, data);


//试点单位导出
export  let exportGroupMealPilot= data => request.get(`${VUE_APP_ADMIN_API}/ssa/supervise/unit/exportGroupMealPilot`, { params: data, isAuth: true, loading: true, responseType: "blob" });


// 获取核酸报告列表
export  let findHcNucleicAcidReportInformation= data => request.post(`${VUE_APP_ADMIN_API}/hc/nucleic/acid/report/findHcNucleicAcidReportInformation`, data, { loading: true });

//试点单位导出
export  let exportHcNucleicAcidReportInformation= data => request.get(`${VUE_APP_ADMIN_API}/hc/nucleic/acid/report/exportHcNucleicAcidReportInformation`, { params: data, isAuth: true, loading: true, responseType: "blob" });

//区域导出
export  let exportRegionalStatisticsNew= data => request.get(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/exportRegionalStatisticsNew`, { params: data, isAuth: true, loading: true, responseType: "blob" });

//单位业态导出
export  let exportBodyindustryNewStatistics= data => request.get(`${VUE_APP_ADMIN_API}/unit/cold/chain/personnel/exportBodyindustryNewStatistics`, { params: data, isAuth: true, loading: true, responseType: "blob" });






// 